using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace VRLauncher
{


public class UISettingForm : UGuiForm
{
    public Button OptionButton;
    public Button ChangeSceneButton;

    protected override void OnInit(object userData)
    {
        base.OnInit(userData);

        OptionButton.onClick.AddListener(OnSettingButtonClick);
            ChangeSceneButton.onClick.AddListener(OnChangeSceneClick);
    }
    public void OnSettingButtonClick()
    {
        GameManager.UI.OpenUIForm(UIFormId.OtherForm);
    }
    public void OnChangeSceneClick()
    {
        GameManager.Event.Fire(this, ChangeSceneEventArgs.Create(GameManager.Config.GetInt("Scene.House01")));
    }
}
}